//
//  IdeaWithUsViewController.m
//  yinsiwenzhen
//
//  Created by appying_wxj on 15/1/4.
//  Copyright (c) 2015年 4gread. All rights reserved.
//

#import "IdeaWithUsViewController.h"

@interface IdeaWithUsViewController ()

@end

@implementation IdeaWithUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
//    UIScrollView *mainScroller = [[UIScrollView alloc] init];
    if (self.tag == 52) {
        self.title = @"关于我们";
        UIImageView *ideaImage = [[UIImageView alloc] init];
        
        //        [ideaImage setContentMode:UIViewContentModeScaleAspectFill];
        //        ideaImage.clipsToBounds = YES;
        ideaImage.contentMode = UIViewContentModeScaleAspectFit;
        if (isiphone4) {
            ideaImage.frame = CGRectMake(0, 64, kScreen_Width, kScreen_Height);
        }else{
            ideaImage.frame = CGRectMake(0, 64, kScreen_Width, kScreen_Height-64);
        }
        ideaImage.image = [UIImage imageNamed:@"image_withUs"];
        
        [self.view addSubview:ideaImage];
    }else{
        self.title = @"隐私保护";
        UIImageView *withUsImage = [[UIImageView alloc] init];
        withUsImage.backgroundColor = [UIColor clearColor];
        withUsImage.contentMode = UIViewContentModeScaleAspectFit;
        if (isiphone4) {
            withUsImage.frame = CGRectMake(0, 64, kScreen_Width, kScreen_Height);
        }else{
            withUsImage.frame = CGRectMake(0, 64, kScreen_Width, kScreen_Height-64);
        }
        withUsImage.image = [UIImage imageNamed:@"image_guanyu"];
        [self.view addSubview:withUsImage];
    }
    [self.navigationController.navigationBar
     setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                             [UIColor colorWithRed:0.44 green:0.44 blue:0.44 alpha:1], NSForegroundColorAttributeName,
                             [UIFont systemFontOfSize:20],
                             NSFontAttributeName,nil]];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
